package demo1;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 86138
 * Date: 2024-06-04
 * Time: 8:22
 */
public class Cat extends Animal{
    //子类，构造方法
    public Cat(String name, int age){
        super(name,age);
    }



    public void bark(){

        System.out.println(this.name + "咪咪叫");
    }
}
